package com.lsw.shareUser;

import android.content.Context;

/**
 * 本地存储的Json数据操作
 * 
 * @author ylf
 * 
 */
public class ShareJsonUtil {

	private SharePrefHelper shareHelper;

	public ShareJsonUtil(Context context) {
		shareHelper = new SharePrefHelper(context, SharePrefHelper.SHARE_JSON);
	}

	/**
	 * 获取
	 * 
	 * @param key
	 * @return
	 */
	public String getJsonString(String key, String defVal) {
		return shareHelper.getSharePre(key, defVal);
	}

	/**
	 * 存储
	 * 
	 * @param key
	 * @param content
	 */
	public void setJsonString(String key, String content) {
		shareHelper.setSharePre(key, content);
	}

}
